@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './common.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  color: #555 !important;
  background-color: #f0f2f5;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

// 所有滚动条优化样式

/* 设置滚动条的样式 */
::-webkit-scrollbar {
  width: 10px;
}
/* 滚动槽 */
::-webkit-scrollbar-track {
  // -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  border-radius: 6px;
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: #bbb;
  // -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(144, 147, 153, 0.4);
}

.dashboard-container {
  padding-top: 60px;
  padding-right: 48px;
}

// el-table
.el-table th {
  background-color: #fafafa;
}
.el-table th.is-leaf {
  border-bottom: 2px solid #e8e8e8;
}

.table-showmore {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);

  .center-box {
    position: relative;
    width: 970px;
    height: 609px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 8px;
    padding: 10px 27px;
  }

  .svg-icon {
    position: absolute;
    font-size: 50px;
    top: 20px;
    right: 60px;
    transition: all 1s;

    &:hover {
      transform: rotate(180deg);
    }
  }
}

.box-title {
  font-size: 17px;
  padding: 0px 20px;
  font-weight: bold;
  color: #525252;

  .help {
    &-tips {
      float: right;
      font-size: 14px;
      color: #909399;
      transform: scale(0);
      transition: transform 2s;
    }
  
    &-icon {
      float: right;

      .svg-icon{
        font-size: 25px;
        margin-right: 2px;
        transform: translateX(100px);
        transition: transform 2s;
      }

      .h-text {
        display: inline-block;
        transform: scale(0);
        transition: transform 1.5s;
      }
    }
  }
}

.box-title:hover {
  .help {
    &-tips {
      float: right;
      font-size: 14px;
      color: #909399;
      transform: scale(1);
      transition: transform 2s;
    }

    &-icon {
      .svg-icon {
        transform: translateX(0px);
        transform: rotate(180deg);
        transition: transform 1.5s;
      }

      .h-text {
        display: inline-block;
        transform: scale(1);
        transition: transform 2s;
      }
    }
  }
}
